module.exports = function (grunt) {
    // 项目配置
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        uglify: {
            options: {
                mangle: false, //不混淆变量名
                banner: '/*! <%= pkg.file %> <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */\n'
            },
            my_target:{
                "files":{
                    'App/lib/beetle.min.js':
                        [
                            'App/common/common.js',
                            'App/common/http.js',
                            'App/common/dialog.js',
                            'App/common/showLoading.js',
                            'App/router.js',
                            'App/common/websocket.js',
                            'App/module/menu/controller/Menu.js',
                            'App/module/menu/controller/MenuSet.js',
                            'App/module/jumpServer/controller/JumpServerEdit.js',
                            'App/module/jumpServer/controller/JumpServerList.js',
                            'App/module/pushRecord/controller/PushRecord.js',
                            'App/module/resource/controller/configFile.js',
                            'App/module/project/controller/ProjectList.js',
                            'App/module/project/controller/ProjectEdit.js',
                            'App/module/user/controller/UserController.js',
                            'App/module/user/controller/roleController.js',
                            'App/module/hotDeployment/controller/deploy.js',
                            'App/module/hotDeployment/controller/serverConfig.js',
                            'App/module/project/controller/Project.js',
                            'App/module/login/controller/login.js',
                            'App/module/uCloud/controller/ucList.js',
                            'App/module/uCloud/controller/ucProgress.js',
                            'App/module/uCloud/controller/ucRelease.js',
                            'App/module/uCloud/controller/ucInit.js',
                            'App/module/uCloud/controller/ucAlylist.js',
                            'App/module/uCloud/controller/newucList.js',
                            'App/module/uCloud/controller/newucRelease.js',
                            'App/module/planProject/controller/plan_Guide.js',
                            'App/module/planProject/controller/planList.js',
                            'App/module/planProject/controller/plan_ProjectList.js',
                            'App/module/integration/controller/list.js',
                            'App/module/integration/controller/init.js',
                            'App/module/integration/controller/set.js',
                            'App/module/emergencyPlan/controller/list.js',
                            'App/module/emergencyPlan/controller/info.js',
                            'App/module/template/controller/edition_to_test_template.js',
                            'App/module/template/controller/edition_integration_template.js',
                            'App/module/template/controller/add_plan_project.js',
                            'App/module/template/controller/change_plan_project.js',
                            'App/module/template/controller/check_alert.js',
                            'App/module/template/controller/file_upload.js',
                            'App/module/uBarrier/controller/barrier.js',
                            'App/module/uBarrier/controller/ubarrierAuto.js',
                            'App/module/uCloud/controller/authorizeC.js',
                            'App/module/uTest/controller/uTest.js',
                            'App/module/uTest/controller/Record.js',
                            'App/module/uCloud/controller/addZoneAndApp.js',
                            'App/module/uCloud/controller/zalist.js',
                            'App/module/uCloud/controller/machinelist.js',
                            'App/module/uCloud/controller/addMachine.js',
                            'App/module/common/controller/urllist.js',
                            'App/module/prod/controller/export.js',
                            'App/module/prod/controller/clean.js',
                            'App/module/template/controller/uTestRecord.js'
                        ]
                }
            }
        }
    });
    // 加载提供任务的插件
    // grunt.loadNpmTasks('grunt-ng-annotate');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    // 默认任务
    grunt.registerTask('default', ['uglify']);

};